// 菜单接口定义
export interface Menu {
  id: string | number;
  name: string;
  path?: string;
  icon: string;
  type: number; // 0-系统, 1-菜单, 2-目录
  status: number; // 0-停用, 1-启用
  sort: number;
  parentId?: string | number;
  componentName?: string;
  showInSidebar?: boolean;
  children?: Menu[];
  createdAt?: string;
  updatedAt?: string;
}

// 菜单创建/更新接口
export interface MenuFormData {
  name: string;
  path?: string;
  icon: string;
  type: number;
  status: number;
  sort: number;
  parentId?: string | number;
  componentName?: string;
  showInSidebar?: boolean;
}